Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdk: remove Linux dependencies #1036

Merged
merged 4 commits into from
Dec 5, 2024
Merged

sdk: remove Linux dependencies #1036

merged 4 commits into from
Dec 5, 2024

Conversation

elchead
Copy link
Contributor

@elchead elchead commented Nov 27, 2024

Context

It is currently not possible to build the SDK / CLI on platforms other than Linux. One of the issues is that the imported packages include Linux specific code.

These components don't require it, so they shouldn't depend on it to allow for cross-platform usage.

AB#4959

Proposed changes

  • move the issuer code into its own sub-package
  • only let the components that require it (coordinator and initializer) import the issuer package

@elchead elchead force-pushed the as/darwin-sdk branch 2 times, most recently from a03f229 to 265c4e3 Compare November 27, 2024 12:12
@elchead elchead changed the title sdk: allow to build on Darwin sdk: remove Linux dependencies Nov 27, 2024
@elchead elchead added no changelog PRs not listed in the release notes needs: investigation Further investigation is needed on this issue and removed needs: investigation Further investigation is needed on this issue labels Nov 27, 2024
@elchead elchead marked this pull request as ready for review November 27, 2024 12:22
@@ -154,7 +155,7 @@ func newServerMetrics(reg *prometheus.Registry) *grpcprometheus.ServerMetrics {
}

func newGRPCServer(serverMetrics *grpcprometheus.ServerMetrics, log *slog.Logger) (*grpc.Server, error) {
issuer, err := atls.PlatformIssuer(log)
issuer, err := issuer.PlatformIssuer(log)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now stuttering.

@elchead elchead requested a review from katexochen November 28, 2024 08:23
@katexochen katexochen removed their request for review November 29, 2024 06:17
@elchead elchead requested review from katexochen and removed request for katexochen November 29, 2024 10:03
Base automatically changed from ob/sdk to main December 4, 2024 14:11
@elchead elchead requested a review from burgerdev December 5, 2024 09:20
Copy link
Contributor

@burgerdev burgerdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

internal/atls/issuer/issuer_linux.go Outdated Show resolved Hide resolved
internal/atls/issuer/issuer_universal.go Outdated Show resolved Hide resolved
internal/attestation/snp/issuer/issuer.go Outdated Show resolved Hide resolved
@elchead elchead merged commit 9150bce into main Dec 5, 2024
10 checks passed
@elchead elchead deleted the as/darwin-sdk branch December 5, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog PRs not listed in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants